<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>Date Calculator</title>
</head>
<body>
	<form:form method="post" action="date.html">

		<table>
			<tr>
				<td><form:label path="date">Date</form:label></td>
				<td><form:input path="date" /></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="Calulcate Ages" />
				</td>
			</tr>
		</table>

	</form:form>
	<table border="1">
		<c:forEach items="${command.contactAges}" var="entry">
			<tr>
				<td>${entry.key.id.name}</td>
				<td>${entry.value}</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>